<?php

//use the ini_set php function.

ini_set("SMTP","smtp.ttt.co.th");
ini_set("smtp_port","25");

$strTo = "golfsoccer@hotmail.com\n";
$strSubject = "Test Send Email\n";
$strHeader = "From: webmaster@thaicreate.com\n";
$strMessage = "My Body & My Description\n";
$flgSend = mail($strTo,$strSubject,$strMessage,$strHeader); // @ = No Show Error //
if($flgSend)
{
echo "Email Sending.";
}
else
{
echo "Email Can Not Send.";
}
?>
